<!DOCTYPE html>
<html>
    
    <?php
    
    include'login.php';
     if(isset($_POST['search_by_date']))
     {
         SearchByDate($_POST['search_by_date']);
     }
      if(isset($_POST['search_by_author']))
     {
         SearchByAuthor($_POST['search_by_author']);
     }
    ?>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <form method ="post" >
        <table>
            <tr>
                <td>
                    By date 
                    
                </td>
                <td>
                    <input type ="text" name="search_by_date" maxlength ="50" />
                </td>
                
                <td>
                    <input type ="submit" name="search_by_date" value ="search by date" />
                </td>
                
                
            </tr>
             
            <tr>
                <td>
                    By author
                </td>
                <td>
                    <input type ="text" name="search_by_author" maxlength ="50" />
                    
                </td>
                
                <td>
                    <input type ="submit" name="search_by_author" value ="search by author" />
                </td>
                
                
            </tr>
            
        </table>
        </form>    
    </body>
    
</html>
